package mware_lib;

import java.util.Objects;


public class Tuple<A,B> {
  private A a;
  private B b;

  public Tuple(A a, B b) {
    this.a = a;
    this.b = b;
  }

  public A getA() {
    return a;
  }

  public void setA(A a) {
    this.a = a;
  }

  public B getB() {
    return b;
  }

  public void setB(B b) {
    this.b = b;
  }

  @Override
  public int hashCode() {
    int hash = 5;
    hash = 23 * hash + Objects.hashCode(this.a);
    hash = 23 * hash + Objects.hashCode(this.b);
    return hash;
  }

  @Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    final Tuple<A, B> other = (Tuple<A, B>) obj;
    if (!Objects.equals(this.a, other.a)) {
      return false;
    }
    if (!Objects.equals(this.b, other.b)) {
      return false;
    }
    return true;
  }

  @Override
  public String toString() {
    return "Tuple{" + "a=" + a + ", b=" + b + '}';
  }
  
  
  
}
